Other Type Definitions
Other Type Definitions
The following type definitions are available globally.
- 
                            
                            
Options for
MGLAttributedExpression.attributes.Declaration
Objective-C
typedef NSString *MGLAttributedExpressionKeySwift
struct MGLAttributedExpressionKey : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable, @unchecked Sendable - 
                            
MGLSphericalPosition
A structure containing information about the position of the light source relative to lit geometries.
See moreDeclaration
Objective-C
typedef struct MGLSphericalPosition MGLSphericalPosition - 
                            
MGLLoggingBlockHandler
A block to be called once
loggingLevelis set to a higher value thanMGLLoggingLevelNone.Declaration
Objective-C
typedef void (^MGLLoggingBlockHandler)(MGLLoggingLevel, NSString *_Nonnull, NSUInteger, NSString *_Nonnull)Swift
typealias MGLLoggingBlockHandler = (MGLLoggingLevel, String, UInt, String) -> VoidParameters
loggingLevelThe message logging level.
filePathThe description of the file and method for the calling message.
lineThe line where the message is logged.
messageThe logging message.
 - 
                            
MGLMapSnapshotOverlayHandler
A block provided during the snapshot drawing process, enabling the ability to draw custom overlays rendered with Core Graphics.
Declaration
Objective-C
typedef void (^MGLMapSnapshotOverlayHandler)(MGLMapSnapshotOverlay *_Nonnull)Swift
typealias MGLMapSnapshotOverlayHandler = (MGLMapSnapshotOverlay) -> VoidParameters
snapshotOverlayThe
MGLMapSnapshotOverlayprovided during snapshot drawing. - 
                            
MGLMapSnapshotCompletionHandler
A block to processes the result or error of a snapshot request.
Declaration
Objective-C
typedef void (^MGLMapSnapshotCompletionHandler)(MGLMapSnapshot *_Nullable, NSError *_Nullable)Swift
typealias MGLMapSnapshotCompletionHandler = (MGLMapSnapshot?, Error?) -> VoidParameters
snapshotThe
MGLMapSnapshotthat was generated ornilif an error occurred.errorThe error that occured or
nilwhen successful. - 
                            
MGLOfflinePackUserInfoKey
A key in the
userInfoproperty of a notification posted byMGLOfflinePack.Declaration
Objective-C
typedef NSString *MGLOfflinePackUserInfoKeySwift
struct MGLOfflinePackUserInfoKey : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable, @unchecked Sendable - 
                            
MGLOfflinePackAdditionCompletionHandler
A block to be called once an offline pack has been completely created and added.
An application typically calls the
-resumemethod on the pack inside this completion handler to begin the download.Declaration
Objective-C
typedef void (^MGLOfflinePackAdditionCompletionHandler)( MGLOfflinePack *_Nullable, NSError *_Nullable)Swift
typealias MGLOfflinePackAdditionCompletionHandler = (MGLOfflinePack?, Error?) -> VoidParameters
packContains a pointer to the newly added pack, or
nilif there was an error creating or adding the pack.errorContains a pointer to an error object (if any) indicating why the pack could not be created or added.
 - 
                            
MGLOfflinePackRemovalCompletionHandler
A block to be called once an offline pack has been completely invalidated and removed.
Avoid any references to the pack inside this completion handler: by the time this completion handler is executed, the pack has become invalid, and any messages passed to it will raise an exception.
Declaration
Objective-C
typedef void (^MGLOfflinePackRemovalCompletionHandler)(NSError *_Nullable)Swift
typealias MGLOfflinePackRemovalCompletionHandler = (Error?) -> VoidParameters
errorContains a pointer to an error object (if any) indicating why the pack could not be invalidated or removed.
 - 
                            
MGLBatchedOfflinePackAdditionCompletionHandler
A block to be called once the contents of a file are copied into the current packs.
Declaration
Objective-C
typedef void (^MGLBatchedOfflinePackAdditionCompletionHandler)( NSURL *_Nonnull, NSArray<MGLOfflinePack *> *_Nullable, NSError *_Nullable)Swift
typealias MGLBatchedOfflinePackAdditionCompletionHandler = (URL, [MGLOfflinePack]?, Error?) -> VoidParameters
fileURLThe file URL of the offline database containing the offline packs that were copied.
packsAn array of all known offline packs, or
nilif there was an error creating or adding the pack.errorA pointer to an error object (if any) indicating why the pack could not be created or added.
 - 
                            
MGLOfflinePreloadDataCompletionHandler
A block to be called once the data has been preloaded.
Declaration
Objective-C
typedef void (^MGLOfflinePreloadDataCompletionHandler)(NSURL *_Nonnull, NSError *_Nullable)Swift
typealias MGLOfflinePreloadDataCompletionHandler = (URL, Error?) -> VoidParameters
urlThe URL of the data that was pre-loaded.
errorContains a pointer to an error object (if any) indicating why the data could not be pre-loaded.
 - 
                            
MGLShapeSourceOption
Options for
MGLShapeSourceobjects.Declaration
Objective-C
typedef NSString *MGLShapeSourceOptionSwift
struct MGLShapeSourceOption : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable, @unchecked Sendable - 
                            
MGLTileSourceOption
Options for
MGLTileSourceobjects.Declaration
Objective-C
typedef NSString *MGLTileSourceOptionSwift
struct MGLTileSourceOption : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable, @unchecked Sendable - 
                            
MGLTransition
A structure containing information about a transition.
See moreDeclaration
Objective-C
typedef struct MGLTransition MGLTransition - 
                            
MGLMapViewDecelerationRate
Options for
MGLMapView.decelerationRate.Declaration
Objective-C
typedef CGFloat MGLMapViewDecelerationRateSwift
struct MGLMapViewDecelerationRate : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable, @unchecked Sendable - 
                            
MGLMapViewPreferredFramesPerSecond
Options for
MGLMapView.preferredFramesPerSecond.Declaration
Objective-C
typedef NSInteger MGLMapViewPreferredFramesPerSecondSwift
struct MGLMapViewPreferredFramesPerSecond : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable, @unchecked Sendable 
Other Type Definitions
The following type definitions are available globally.
- 
                            
                            
Options for
MGLAttributedExpression.attributes.Declaration
Objective-C
typedef NSString *MGLAttributedExpressionKeySwift
struct MGLAttributedExpressionKey : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable, @unchecked Sendable - 
                            
MGLSphericalPosition
A structure containing information about the position of the light source relative to lit geometries.
See moreDeclaration
Objective-C
typedef struct MGLSphericalPosition MGLSphericalPosition - 
                            
MGLLoggingBlockHandler
A block to be called once
loggingLevelis set to a higher value thanMGLLoggingLevelNone.Declaration
Objective-C
typedef void (^MGLLoggingBlockHandler)(MGLLoggingLevel, NSString *_Nonnull, NSUInteger, NSString *_Nonnull)Swift
typealias MGLLoggingBlockHandler = (MGLLoggingLevel, String, UInt, String) -> VoidParameters
loggingLevelThe message logging level.
filePathThe description of the file and method for the calling message.
lineThe line where the message is logged.
messageThe logging message.
 - 
                            
MGLMapSnapshotOverlayHandler
A block provided during the snapshot drawing process, enabling the ability to draw custom overlays rendered with Core Graphics.
Declaration
Objective-C
typedef void (^MGLMapSnapshotOverlayHandler)(MGLMapSnapshotOverlay *_Nonnull)Swift
typealias MGLMapSnapshotOverlayHandler = (MGLMapSnapshotOverlay) -> VoidParameters
snapshotOverlayThe
MGLMapSnapshotOverlayprovided during snapshot drawing. - 
                            
MGLMapSnapshotCompletionHandler
A block to processes the result or error of a snapshot request.
Declaration
Objective-C
typedef void (^MGLMapSnapshotCompletionHandler)(MGLMapSnapshot *_Nullable, NSError *_Nullable)Swift
typealias MGLMapSnapshotCompletionHandler = (MGLMapSnapshot?, Error?) -> VoidParameters
snapshotThe
MGLMapSnapshotthat was generated ornilif an error occurred.errorThe error that occured or
nilwhen successful. - 
                            
MGLOfflinePackUserInfoKey
A key in the
userInfoproperty of a notification posted byMGLOfflinePack.Declaration
Objective-C
typedef NSString *MGLOfflinePackUserInfoKeySwift
struct MGLOfflinePackUserInfoKey : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable, @unchecked Sendable - 
                            
MGLOfflinePackAdditionCompletionHandler
A block to be called once an offline pack has been completely created and added.
An application typically calls the
-resumemethod on the pack inside this completion handler to begin the download.Declaration
Objective-C
typedef void (^MGLOfflinePackAdditionCompletionHandler)( MGLOfflinePack *_Nullable, NSError *_Nullable)Swift
typealias MGLOfflinePackAdditionCompletionHandler = (MGLOfflinePack?, Error?) -> VoidParameters
packContains a pointer to the newly added pack, or
nilif there was an error creating or adding the pack.errorContains a pointer to an error object (if any) indicating why the pack could not be created or added.
 - 
                            
MGLOfflinePackRemovalCompletionHandler
A block to be called once an offline pack has been completely invalidated and removed.
Avoid any references to the pack inside this completion handler: by the time this completion handler is executed, the pack has become invalid, and any messages passed to it will raise an exception.
Declaration
Objective-C
typedef void (^MGLOfflinePackRemovalCompletionHandler)(NSError *_Nullable)Swift
typealias MGLOfflinePackRemovalCompletionHandler = (Error?) -> VoidParameters
errorContains a pointer to an error object (if any) indicating why the pack could not be invalidated or removed.
 - 
                            
MGLBatchedOfflinePackAdditionCompletionHandler
A block to be called once the contents of a file are copied into the current packs.
Declaration
Objective-C
typedef void (^MGLBatchedOfflinePackAdditionCompletionHandler)( NSURL *_Nonnull, NSArray<MGLOfflinePack *> *_Nullable, NSError *_Nullable)Swift
typealias MGLBatchedOfflinePackAdditionCompletionHandler = (URL, [MGLOfflinePack]?, Error?) -> VoidParameters
fileURLThe file URL of the offline database containing the offline packs that were copied.
packsAn array of all known offline packs, or
nilif there was an error creating or adding the pack.errorA pointer to an error object (if any) indicating why the pack could not be created or added.
 - 
                            
MGLOfflinePreloadDataCompletionHandler
A block to be called once the data has been preloaded.
Declaration
Objective-C
typedef void (^MGLOfflinePreloadDataCompletionHandler)(NSURL *_Nonnull, NSError *_Nullable)Swift
typealias MGLOfflinePreloadDataCompletionHandler = (URL, Error?) -> VoidParameters
urlThe URL of the data that was pre-loaded.
errorContains a pointer to an error object (if any) indicating why the data could not be pre-loaded.
 - 
                            
MGLShapeSourceOption
Options for
MGLShapeSourceobjects.Declaration
Objective-C
typedef NSString *MGLShapeSourceOptionSwift
struct MGLShapeSourceOption : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable, @unchecked Sendable - 
                            
MGLTileSourceOption
Options for
MGLTileSourceobjects.Declaration
Objective-C
typedef NSString *MGLTileSourceOptionSwift
struct MGLTileSourceOption : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable, @unchecked Sendable - 
                            
MGLTransition
A structure containing information about a transition.
See moreDeclaration
Objective-C
typedef struct MGLTransition MGLTransition - 
                            
MGLMapViewDecelerationRate
Options for
MGLMapView.decelerationRate.Declaration
Objective-C
typedef CGFloat MGLMapViewDecelerationRateSwift
struct MGLMapViewDecelerationRate : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable, @unchecked Sendable - 
                            
MGLMapViewPreferredFramesPerSecond
Options for
MGLMapView.preferredFramesPerSecond.Declaration
Objective-C
typedef NSInteger MGLMapViewPreferredFramesPerSecondSwift
struct MGLMapViewPreferredFramesPerSecond : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable, @unchecked Sendable 
Other Type Definitions
The following type definitions are available globally.
- 
                            
                            
Options for
MGLAttributedExpression.attributes.Declaration
Objective-C
typedef NSString *MGLAttributedExpressionKeySwift
struct MGLAttributedExpressionKey : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable, @unchecked Sendable - 
                            
MGLSphericalPosition
A structure containing information about the position of the light source relative to lit geometries.
See moreDeclaration
Objective-C
typedef struct MGLSphericalPosition MGLSphericalPosition - 
                            
MGLLoggingBlockHandler
A block to be called once
loggingLevelis set to a higher value thanMGLLoggingLevelNone.Declaration
Objective-C
typedef void (^MGLLoggingBlockHandler)(MGLLoggingLevel, NSString *_Nonnull, NSUInteger, NSString *_Nonnull)Swift
typealias MGLLoggingBlockHandler = (MGLLoggingLevel, String, UInt, String) -> VoidParameters
loggingLevelThe message logging level.
filePathThe description of the file and method for the calling message.
lineThe line where the message is logged.
messageThe logging message.
 - 
                            
MGLMapSnapshotOverlayHandler
A block provided during the snapshot drawing process, enabling the ability to draw custom overlays rendered with Core Graphics.
Declaration
Objective-C
typedef void (^MGLMapSnapshotOverlayHandler)(MGLMapSnapshotOverlay *_Nonnull)Swift
typealias MGLMapSnapshotOverlayHandler = (MGLMapSnapshotOverlay) -> VoidParameters
snapshotOverlayThe
MGLMapSnapshotOverlayprovided during snapshot drawing. - 
                            
MGLMapSnapshotCompletionHandler
A block to processes the result or error of a snapshot request.
Declaration
Objective-C
typedef void (^MGLMapSnapshotCompletionHandler)(MGLMapSnapshot *_Nullable, NSError *_Nullable)Swift
typealias MGLMapSnapshotCompletionHandler = (MGLMapSnapshot?, Error?) -> VoidParameters
snapshotThe
MGLMapSnapshotthat was generated ornilif an error occurred.errorThe error that occured or
nilwhen successful. - 
                            
MGLOfflinePackUserInfoKey
A key in the
userInfoproperty of a notification posted byMGLOfflinePack.Declaration
Objective-C
typedef NSString *MGLOfflinePackUserInfoKeySwift
struct MGLOfflinePackUserInfoKey : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable, @unchecked Sendable - 
                            
MGLOfflinePackAdditionCompletionHandler
A block to be called once an offline pack has been completely created and added.
An application typically calls the
-resumemethod on the pack inside this completion handler to begin the download.Declaration
Objective-C
typedef void (^MGLOfflinePackAdditionCompletionHandler)( MGLOfflinePack *_Nullable, NSError *_Nullable)Swift
typealias MGLOfflinePackAdditionCompletionHandler = (MGLOfflinePack?, Error?) -> VoidParameters
packContains a pointer to the newly added pack, or
nilif there was an error creating or adding the pack.errorContains a pointer to an error object (if any) indicating why the pack could not be created or added.
 - 
                            
MGLOfflinePackRemovalCompletionHandler
A block to be called once an offline pack has been completely invalidated and removed.
Avoid any references to the pack inside this completion handler: by the time this completion handler is executed, the pack has become invalid, and any messages passed to it will raise an exception.
Declaration
Objective-C
typedef void (^MGLOfflinePackRemovalCompletionHandler)(NSError *_Nullable)Swift
typealias MGLOfflinePackRemovalCompletionHandler = (Error?) -> VoidParameters
errorContains a pointer to an error object (if any) indicating why the pack could not be invalidated or removed.
 - 
                            
MGLBatchedOfflinePackAdditionCompletionHandler
A block to be called once the contents of a file are copied into the current packs.
Declaration
Objective-C
typedef void (^MGLBatchedOfflinePackAdditionCompletionHandler)( NSURL *_Nonnull, NSArray<MGLOfflinePack *> *_Nullable, NSError *_Nullable)Swift
typealias MGLBatchedOfflinePackAdditionCompletionHandler = (URL, [MGLOfflinePack]?, Error?) -> VoidParameters
fileURLThe file URL of the offline database containing the offline packs that were copied.
packsAn array of all known offline packs, or
nilif there was an error creating or adding the pack.errorA pointer to an error object (if any) indicating why the pack could not be created or added.
 - 
                            
MGLOfflinePreloadDataCompletionHandler
A block to be called once the data has been preloaded.
Declaration
Objective-C
typedef void (^MGLOfflinePreloadDataCompletionHandler)(NSURL *_Nonnull, NSError *_Nullable)Swift
typealias MGLOfflinePreloadDataCompletionHandler = (URL, Error?) -> VoidParameters
urlThe URL of the data that was pre-loaded.
errorContains a pointer to an error object (if any) indicating why the data could not be pre-loaded.
 - 
                            
MGLShapeSourceOption
Options for
MGLShapeSourceobjects.Declaration
Objective-C
typedef NSString *MGLShapeSourceOptionSwift
struct MGLShapeSourceOption : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable, @unchecked Sendable - 
                            
MGLTileSourceOption
Options for
MGLTileSourceobjects.Declaration
Objective-C
typedef NSString *MGLTileSourceOptionSwift
struct MGLTileSourceOption : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable, @unchecked Sendable - 
                            
MGLTransition
A structure containing information about a transition.
See moreDeclaration
Objective-C
typedef struct MGLTransition MGLTransition - 
                            
MGLMapViewDecelerationRate
Options for
MGLMapView.decelerationRate.Declaration
Objective-C
typedef CGFloat MGLMapViewDecelerationRateSwift
struct MGLMapViewDecelerationRate : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable, @unchecked Sendable - 
                            
MGLMapViewPreferredFramesPerSecond
Options for
MGLMapView.preferredFramesPerSecond.Declaration
Objective-C
typedef NSInteger MGLMapViewPreferredFramesPerSecondSwift
struct MGLMapViewPreferredFramesPerSecond : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable, @unchecked Sendable 
Other Type Definitions
The following type definitions are available globally.
- 
                            
                            
Options for
MGLAttributedExpression.attributes.Declaration
Objective-C
typedef NSString *MGLAttributedExpressionKeySwift
struct MGLAttributedExpressionKey : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable, @unchecked Sendable - 
                            
MGLSphericalPosition
A structure containing information about the position of the light source relative to lit geometries.
See moreDeclaration
Objective-C
typedef struct MGLSphericalPosition MGLSphericalPosition - 
                            
MGLLoggingBlockHandler
A block to be called once
loggingLevelis set to a higher value thanMGLLoggingLevelNone.Declaration
Objective-C
typedef void (^MGLLoggingBlockHandler)(MGLLoggingLevel, NSString *_Nonnull, NSUInteger, NSString *_Nonnull)Swift
typealias MGLLoggingBlockHandler = (MGLLoggingLevel, String, UInt, String) -> VoidParameters
loggingLevelThe message logging level.
filePathThe description of the file and method for the calling message.
lineThe line where the message is logged.
messageThe logging message.
 - 
                            
MGLMapSnapshotOverlayHandler
A block provided during the snapshot drawing process, enabling the ability to draw custom overlays rendered with Core Graphics.
Declaration
Objective-C
typedef void (^MGLMapSnapshotOverlayHandler)(MGLMapSnapshotOverlay *_Nonnull)Swift
typealias MGLMapSnapshotOverlayHandler = (MGLMapSnapshotOverlay) -> VoidParameters
snapshotOverlayThe
MGLMapSnapshotOverlayprovided during snapshot drawing. - 
                            
MGLMapSnapshotCompletionHandler
A block to processes the result or error of a snapshot request.
Declaration
Objective-C
typedef void (^MGLMapSnapshotCompletionHandler)(MGLMapSnapshot *_Nullable, NSError *_Nullable)Swift
typealias MGLMapSnapshotCompletionHandler = (MGLMapSnapshot?, Error?) -> VoidParameters
snapshotThe
MGLMapSnapshotthat was generated ornilif an error occurred.errorThe error that occured or
nilwhen successful. - 
                            
MGLOfflinePackUserInfoKey
A key in the
userInfoproperty of a notification posted byMGLOfflinePack.Declaration
Objective-C
typedef NSString *MGLOfflinePackUserInfoKeySwift
struct MGLOfflinePackUserInfoKey : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable, @unchecked Sendable - 
                            
MGLOfflinePackAdditionCompletionHandler
A block to be called once an offline pack has been completely created and added.
An application typically calls the
-resumemethod on the pack inside this completion handler to begin the download.Declaration
Objective-C
typedef void (^MGLOfflinePackAdditionCompletionHandler)( MGLOfflinePack *_Nullable, NSError *_Nullable)Swift
typealias MGLOfflinePackAdditionCompletionHandler = (MGLOfflinePack?, Error?) -> VoidParameters
packContains a pointer to the newly added pack, or
nilif there was an error creating or adding the pack.errorContains a pointer to an error object (if any) indicating why the pack could not be created or added.
 - 
                            
MGLOfflinePackRemovalCompletionHandler
A block to be called once an offline pack has been completely invalidated and removed.
Avoid any references to the pack inside this completion handler: by the time this completion handler is executed, the pack has become invalid, and any messages passed to it will raise an exception.
Declaration
Objective-C
typedef void (^MGLOfflinePackRemovalCompletionHandler)(NSError *_Nullable)Swift
typealias MGLOfflinePackRemovalCompletionHandler = (Error?) -> VoidParameters
errorContains a pointer to an error object (if any) indicating why the pack could not be invalidated or removed.
 - 
                            
MGLBatchedOfflinePackAdditionCompletionHandler
A block to be called once the contents of a file are copied into the current packs.
Declaration
Objective-C
typedef void (^MGLBatchedOfflinePackAdditionCompletionHandler)( NSURL *_Nonnull, NSArray<MGLOfflinePack *> *_Nullable, NSError *_Nullable)Swift
typealias MGLBatchedOfflinePackAdditionCompletionHandler = (URL, [MGLOfflinePack]?, Error?) -> VoidParameters
fileURLThe file URL of the offline database containing the offline packs that were copied.
packsAn array of all known offline packs, or
nilif there was an error creating or adding the pack.errorA pointer to an error object (if any) indicating why the pack could not be created or added.
 - 
                            
MGLOfflinePreloadDataCompletionHandler
A block to be called once the data has been preloaded.
Declaration
Objective-C
typedef void (^MGLOfflinePreloadDataCompletionHandler)(NSURL *_Nonnull, NSError *_Nullable)Swift
typealias MGLOfflinePreloadDataCompletionHandler = (URL, Error?) -> VoidParameters
urlThe URL of the data that was pre-loaded.
errorContains a pointer to an error object (if any) indicating why the data could not be pre-loaded.
 - 
                            
MGLShapeSourceOption
Options for
MGLShapeSourceobjects.Declaration
Objective-C
typedef NSString *MGLShapeSourceOptionSwift
struct MGLShapeSourceOption : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable, @unchecked Sendable - 
                            
MGLTileSourceOption
Options for
MGLTileSourceobjects.Declaration
Objective-C
typedef NSString *MGLTileSourceOptionSwift
struct MGLTileSourceOption : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable, @unchecked Sendable - 
                            
MGLTransition
A structure containing information about a transition.
See moreDeclaration
Objective-C
typedef struct MGLTransition MGLTransition - 
                            
MGLMapViewDecelerationRate
Options for
MGLMapView.decelerationRate.Declaration
Objective-C
typedef CGFloat MGLMapViewDecelerationRateSwift
struct MGLMapViewDecelerationRate : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable, @unchecked Sendable - 
                            
MGLMapViewPreferredFramesPerSecond
Options for
MGLMapView.preferredFramesPerSecond.Declaration
Objective-C
typedef NSInteger MGLMapViewPreferredFramesPerSecondSwift
struct MGLMapViewPreferredFramesPerSecond : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable, @unchecked Sendable 
Other Type Definitions
The following type definitions are available globally.
- 
                            
                            
Options for
MGLAttributedExpression.attributes.Declaration
Objective-C
typedef NSString *MGLAttributedExpressionKeySwift
struct MGLAttributedExpressionKey : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable, @unchecked Sendable - 
                            
MGLSphericalPosition
A structure containing information about the position of the light source relative to lit geometries.
See moreDeclaration
Objective-C
typedef struct MGLSphericalPosition MGLSphericalPosition - 
                            
MGLLoggingBlockHandler
A block to be called once
loggingLevelis set to a higher value thanMGLLoggingLevelNone.Declaration
Objective-C
typedef void (^MGLLoggingBlockHandler)(MGLLoggingLevel, NSString *_Nonnull, NSUInteger, NSString *_Nonnull)Swift
typealias MGLLoggingBlockHandler = (MGLLoggingLevel, String, UInt, String) -> VoidParameters
loggingLevelThe message logging level.
filePathThe description of the file and method for the calling message.
lineThe line where the message is logged.
messageThe logging message.
 - 
                            
MGLMapSnapshotOverlayHandler
A block provided during the snapshot drawing process, enabling the ability to draw custom overlays rendered with Core Graphics.
Declaration
Objective-C
typedef void (^MGLMapSnapshotOverlayHandler)(MGLMapSnapshotOverlay *_Nonnull)Swift
typealias MGLMapSnapshotOverlayHandler = (MGLMapSnapshotOverlay) -> VoidParameters
snapshotOverlayThe
MGLMapSnapshotOverlayprovided during snapshot drawing. - 
                            
MGLMapSnapshotCompletionHandler
A block to processes the result or error of a snapshot request.
Declaration
Objective-C
typedef void (^MGLMapSnapshotCompletionHandler)(MGLMapSnapshot *_Nullable, NSError *_Nullable)Swift
typealias MGLMapSnapshotCompletionHandler = (MGLMapSnapshot?, Error?) -> VoidParameters
snapshotThe
MGLMapSnapshotthat was generated ornilif an error occurred.errorThe error that occured or
nilwhen successful. - 
                            
MGLOfflinePackUserInfoKey
A key in the
userInfoproperty of a notification posted byMGLOfflinePack.Declaration
Objective-C
typedef NSString *MGLOfflinePackUserInfoKeySwift
struct MGLOfflinePackUserInfoKey : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable, @unchecked Sendable - 
                            
MGLOfflinePackAdditionCompletionHandler
A block to be called once an offline pack has been completely created and added.
An application typically calls the
-resumemethod on the pack inside this completion handler to begin the download.Declaration
Objective-C
typedef void (^MGLOfflinePackAdditionCompletionHandler)( MGLOfflinePack *_Nullable, NSError *_Nullable)Swift
typealias MGLOfflinePackAdditionCompletionHandler = (MGLOfflinePack?, Error?) -> VoidParameters
packContains a pointer to the newly added pack, or
nilif there was an error creating or adding the pack.errorContains a pointer to an error object (if any) indicating why the pack could not be created or added.
 - 
                            
MGLOfflinePackRemovalCompletionHandler
A block to be called once an offline pack has been completely invalidated and removed.
Avoid any references to the pack inside this completion handler: by the time this completion handler is executed, the pack has become invalid, and any messages passed to it will raise an exception.
Declaration
Objective-C
typedef void (^MGLOfflinePackRemovalCompletionHandler)(NSError *_Nullable)Swift
typealias MGLOfflinePackRemovalCompletionHandler = (Error?) -> VoidParameters
errorContains a pointer to an error object (if any) indicating why the pack could not be invalidated or removed.
 - 
                            
MGLBatchedOfflinePackAdditionCompletionHandler
A block to be called once the contents of a file are copied into the current packs.
Declaration
Objective-C
typedef void (^MGLBatchedOfflinePackAdditionCompletionHandler)( NSURL *_Nonnull, NSArray<MGLOfflinePack *> *_Nullable, NSError *_Nullable)Swift
typealias MGLBatchedOfflinePackAdditionCompletionHandler = (URL, [MGLOfflinePack]?, Error?) -> VoidParameters
fileURLThe file URL of the offline database containing the offline packs that were copied.
packsAn array of all known offline packs, or
nilif there was an error creating or adding the pack.errorA pointer to an error object (if any) indicating why the pack could not be created or added.
 - 
                            
MGLOfflinePreloadDataCompletionHandler
A block to be called once the data has been preloaded.
Declaration
Objective-C
typedef void (^MGLOfflinePreloadDataCompletionHandler)(NSURL *_Nonnull, NSError *_Nullable)Swift
typealias MGLOfflinePreloadDataCompletionHandler = (URL, Error?) -> VoidParameters
urlThe URL of the data that was pre-loaded.
errorContains a pointer to an error object (if any) indicating why the data could not be pre-loaded.
 - 
                            
MGLShapeSourceOption
Options for
MGLShapeSourceobjects.Declaration
Objective-C
typedef NSString *MGLShapeSourceOptionSwift
struct MGLShapeSourceOption : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable, @unchecked Sendable - 
                            
MGLTileSourceOption
Options for
MGLTileSourceobjects.Declaration
Objective-C
typedef NSString *MGLTileSourceOptionSwift
struct MGLTileSourceOption : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable, @unchecked Sendable - 
                            
MGLTransition
A structure containing information about a transition.
See moreDeclaration
Objective-C
typedef struct MGLTransition MGLTransition - 
                            
MGLMapViewDecelerationRate
Options for
MGLMapView.decelerationRate.Declaration
Objective-C
typedef CGFloat MGLMapViewDecelerationRateSwift
struct MGLMapViewDecelerationRate : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable, @unchecked Sendable - 
                            
MGLMapViewPreferredFramesPerSecond
Options for
MGLMapView.preferredFramesPerSecond.Declaration
Objective-C
typedef NSInteger MGLMapViewPreferredFramesPerSecondSwift
struct MGLMapViewPreferredFramesPerSecond : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable, @unchecked Sendable 
Other Type Definitions
The following type definitions are available globally.
- 
                            
                            
Options for
MGLAttributedExpression.attributes.Declaration
Objective-C
typedef NSString *MGLAttributedExpressionKeySwift
struct MGLAttributedExpressionKey : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable, @unchecked Sendable - 
                            
MGLSphericalPosition
A structure containing information about the position of the light source relative to lit geometries.
See moreDeclaration
Objective-C
typedef struct MGLSphericalPosition MGLSphericalPosition - 
                            
MGLLoggingBlockHandler
A block to be called once
loggingLevelis set to a higher value thanMGLLoggingLevelNone.Declaration
Objective-C
typedef void (^MGLLoggingBlockHandler)(MGLLoggingLevel, NSString *_Nonnull, NSUInteger, NSString *_Nonnull)Swift
typealias MGLLoggingBlockHandler = (MGLLoggingLevel, String, UInt, String) -> VoidParameters
loggingLevelThe message logging level.
filePathThe description of the file and method for the calling message.
lineThe line where the message is logged.
messageThe logging message.
 - 
                            
MGLMapSnapshotOverlayHandler
A block provided during the snapshot drawing process, enabling the ability to draw custom overlays rendered with Core Graphics.
Declaration
Objective-C
typedef void (^MGLMapSnapshotOverlayHandler)(MGLMapSnapshotOverlay *_Nonnull)Swift
typealias MGLMapSnapshotOverlayHandler = (MGLMapSnapshotOverlay) -> VoidParameters
snapshotOverlayThe
MGLMapSnapshotOverlayprovided during snapshot drawing. - 
                            
MGLMapSnapshotCompletionHandler
A block to processes the result or error of a snapshot request.
Declaration
Objective-C
typedef void (^MGLMapSnapshotCompletionHandler)(MGLMapSnapshot *_Nullable, NSError *_Nullable)Swift
typealias MGLMapSnapshotCompletionHandler = (MGLMapSnapshot?, Error?) -> VoidParameters
snapshotThe
MGLMapSnapshotthat was generated ornilif an error occurred.errorThe error that occured or
nilwhen successful. - 
                            
MGLOfflinePackUserInfoKey
A key in the
userInfoproperty of a notification posted byMGLOfflinePack.Declaration
Objective-C
typedef NSString *MGLOfflinePackUserInfoKeySwift
struct MGLOfflinePackUserInfoKey : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable, @unchecked Sendable - 
                            
MGLOfflinePackAdditionCompletionHandler
A block to be called once an offline pack has been completely created and added.
An application typically calls the
-resumemethod on the pack inside this completion handler to begin the download.Declaration
Objective-C
typedef void (^MGLOfflinePackAdditionCompletionHandler)( MGLOfflinePack *_Nullable, NSError *_Nullable)Swift
typealias MGLOfflinePackAdditionCompletionHandler = (MGLOfflinePack?, Error?) -> VoidParameters
packContains a pointer to the newly added pack, or
nilif there was an error creating or adding the pack.errorContains a pointer to an error object (if any) indicating why the pack could not be created or added.
 - 
                            
MGLOfflinePackRemovalCompletionHandler
A block to be called once an offline pack has been completely invalidated and removed.
Avoid any references to the pack inside this completion handler: by the time this completion handler is executed, the pack has become invalid, and any messages passed to it will raise an exception.
Declaration
Objective-C
typedef void (^MGLOfflinePackRemovalCompletionHandler)(NSError *_Nullable)Swift
typealias MGLOfflinePackRemovalCompletionHandler = (Error?) -> VoidParameters
errorContains a pointer to an error object (if any) indicating why the pack could not be invalidated or removed.
 - 
                            
MGLBatchedOfflinePackAdditionCompletionHandler
A block to be called once the contents of a file are copied into the current packs.
Declaration
Objective-C
typedef void (^MGLBatchedOfflinePackAdditionCompletionHandler)( NSURL *_Nonnull, NSArray<MGLOfflinePack *> *_Nullable, NSError *_Nullable)Swift
typealias MGLBatchedOfflinePackAdditionCompletionHandler = (URL, [MGLOfflinePack]?, Error?) -> VoidParameters
fileURLThe file URL of the offline database containing the offline packs that were copied.
packsAn array of all known offline packs, or
nilif there was an error creating or adding the pack.errorA pointer to an error object (if any) indicating why the pack could not be created or added.
 - 
                            
MGLOfflinePreloadDataCompletionHandler
A block to be called once the data has been preloaded.
Declaration
Objective-C
typedef void (^MGLOfflinePreloadDataCompletionHandler)(NSURL *_Nonnull, NSError *_Nullable)Swift
typealias MGLOfflinePreloadDataCompletionHandler = (URL, Error?) -> VoidParameters
urlThe URL of the data that was pre-loaded.
errorContains a pointer to an error object (if any) indicating why the data could not be pre-loaded.
 - 
                            
MGLShapeSourceOption
Options for
MGLShapeSourceobjects.Declaration
Objective-C
typedef NSString *MGLShapeSourceOptionSwift
struct MGLShapeSourceOption : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable, @unchecked Sendable - 
                            
MGLTileSourceOption
Options for
MGLTileSourceobjects.Declaration
Objective-C
typedef NSString *MGLTileSourceOptionSwift
struct MGLTileSourceOption : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable, @unchecked Sendable - 
                            
MGLTransition
A structure containing information about a transition.
See moreDeclaration
Objective-C
typedef struct MGLTransition MGLTransition - 
                            
MGLMapViewDecelerationRate
Options for
MGLMapView.decelerationRate.Declaration
Objective-C
typedef CGFloat MGLMapViewDecelerationRateSwift
struct MGLMapViewDecelerationRate : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable, @unchecked Sendable - 
                            
MGLMapViewPreferredFramesPerSecond
Options for
MGLMapView.preferredFramesPerSecond.Declaration
Objective-C
typedef NSInteger MGLMapViewPreferredFramesPerSecondSwift
struct MGLMapViewPreferredFramesPerSecond : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable, @unchecked Sendable 
Other Type Definitions
The following type definitions are available globally.
- 
                            
                            
Options for
MGLAttributedExpression.attributes.Declaration
Objective-C
typedef NSString *MGLAttributedExpressionKeySwift
struct MGLAttributedExpressionKey : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable, @unchecked Sendable - 
                            
MGLSphericalPosition
A structure containing information about the position of the light source relative to lit geometries.
See moreDeclaration
Objective-C
typedef struct MGLSphericalPosition MGLSphericalPosition - 
                            
MGLLoggingBlockHandler
A block to be called once
loggingLevelis set to a higher value thanMGLLoggingLevelNone.Declaration
Objective-C
typedef void (^MGLLoggingBlockHandler)(MGLLoggingLevel, NSString *_Nonnull, NSUInteger, NSString *_Nonnull)Swift
typealias MGLLoggingBlockHandler = (MGLLoggingLevel, String, UInt, String) -> VoidParameters
loggingLevelThe message logging level.
filePathThe description of the file and method for the calling message.
lineThe line where the message is logged.
messageThe logging message.
 - 
                            
MGLMapSnapshotOverlayHandler
A block provided during the snapshot drawing process, enabling the ability to draw custom overlays rendered with Core Graphics.
Declaration
Objective-C
typedef void (^MGLMapSnapshotOverlayHandler)(MGLMapSnapshotOverlay *_Nonnull)Swift
typealias MGLMapSnapshotOverlayHandler = (MGLMapSnapshotOverlay) -> VoidParameters
snapshotOverlayThe
MGLMapSnapshotOverlayprovided during snapshot drawing. - 
                            
MGLMapSnapshotCompletionHandler
A block to processes the result or error of a snapshot request.
Declaration
Objective-C
typedef void (^MGLMapSnapshotCompletionHandler)(MGLMapSnapshot *_Nullable, NSError *_Nullable)Swift
typealias MGLMapSnapshotCompletionHandler = (MGLMapSnapshot?, Error?) -> VoidParameters
snapshotThe
MGLMapSnapshotthat was generated ornilif an error occurred.errorThe error that occured or
nilwhen successful. - 
                            
MGLOfflinePackUserInfoKey
A key in the
userInfoproperty of a notification posted byMGLOfflinePack.Declaration
Objective-C
typedef NSString *MGLOfflinePackUserInfoKeySwift
struct MGLOfflinePackUserInfoKey : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable, @unchecked Sendable - 
                            
MGLOfflinePackAdditionCompletionHandler
A block to be called once an offline pack has been completely created and added.
An application typically calls the
-resumemethod on the pack inside this completion handler to begin the download.Declaration
Objective-C
typedef void (^MGLOfflinePackAdditionCompletionHandler)( MGLOfflinePack *_Nullable, NSError *_Nullable)Swift
typealias MGLOfflinePackAdditionCompletionHandler = (MGLOfflinePack?, Error?) -> VoidParameters
packContains a pointer to the newly added pack, or
nilif there was an error creating or adding the pack.errorContains a pointer to an error object (if any) indicating why the pack could not be created or added.
 - 
                            
MGLOfflinePackRemovalCompletionHandler
A block to be called once an offline pack has been completely invalidated and removed.
Avoid any references to the pack inside this completion handler: by the time this completion handler is executed, the pack has become invalid, and any messages passed to it will raise an exception.
Declaration
Objective-C
typedef void (^MGLOfflinePackRemovalCompletionHandler)(NSError *_Nullable)Swift
typealias MGLOfflinePackRemovalCompletionHandler = (Error?) -> VoidParameters
errorContains a pointer to an error object (if any) indicating why the pack could not be invalidated or removed.
 - 
                            
MGLBatchedOfflinePackAdditionCompletionHandler
A block to be called once the contents of a file are copied into the current packs.
Declaration
Objective-C
typedef void (^MGLBatchedOfflinePackAdditionCompletionHandler)( NSURL *_Nonnull, NSArray<MGLOfflinePack *> *_Nullable, NSError *_Nullable)Swift
typealias MGLBatchedOfflinePackAdditionCompletionHandler = (URL, [MGLOfflinePack]?, Error?) -> VoidParameters
fileURLThe file URL of the offline database containing the offline packs that were copied.
packsAn array of all known offline packs, or
nilif there was an error creating or adding the pack.errorA pointer to an error object (if any) indicating why the pack could not be created or added.
 - 
                            
MGLOfflinePreloadDataCompletionHandler
A block to be called once the data has been preloaded.
Declaration
Objective-C
typedef void (^MGLOfflinePreloadDataCompletionHandler)(NSURL *_Nonnull, NSError *_Nullable)Swift
typealias MGLOfflinePreloadDataCompletionHandler = (URL, Error?) -> VoidParameters
urlThe URL of the data that was pre-loaded.
errorContains a pointer to an error object (if any) indicating why the data could not be pre-loaded.
 - 
                            
MGLShapeSourceOption
Options for
MGLShapeSourceobjects.Declaration
Objective-C
typedef NSString *MGLShapeSourceOptionSwift
struct MGLShapeSourceOption : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable, @unchecked Sendable - 
                            
MGLTileSourceOption
Options for
MGLTileSourceobjects.Declaration
Objective-C
typedef NSString *MGLTileSourceOptionSwift
struct MGLTileSourceOption : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable, @unchecked Sendable - 
                            
MGLTransition
A structure containing information about a transition.
See moreDeclaration
Objective-C
typedef struct MGLTransition MGLTransition - 
                            
MGLMapViewDecelerationRate
Options for
MGLMapView.decelerationRate.Declaration
Objective-C
typedef CGFloat MGLMapViewDecelerationRateSwift
struct MGLMapViewDecelerationRate : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable, @unchecked Sendable - 
                            
MGLMapViewPreferredFramesPerSecond
Options for
MGLMapView.preferredFramesPerSecond.Declaration
Objective-C
typedef NSInteger MGLMapViewPreferredFramesPerSecondSwift
struct MGLMapViewPreferredFramesPerSecond : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable, @unchecked Sendable 
Other Type Definitions
The following type definitions are available globally.
- 
                            
                            
Options for
MGLAttributedExpression.attributes.Declaration
Objective-C
typedef NSString *MGLAttributedExpressionKeySwift
struct MGLAttributedExpressionKey : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable, @unchecked Sendable - 
                            
MGLSphericalPosition
A structure containing information about the position of the light source relative to lit geometries.
See moreDeclaration
Objective-C
typedef struct MGLSphericalPosition MGLSphericalPosition - 
                            
MGLLoggingBlockHandler
A block to be called once
loggingLevelis set to a higher value thanMGLLoggingLevelNone.Declaration
Objective-C
typedef void (^MGLLoggingBlockHandler)(MGLLoggingLevel, NSString *_Nonnull, NSUInteger, NSString *_Nonnull)Swift
typealias MGLLoggingBlockHandler = (MGLLoggingLevel, String, UInt, String) -> VoidParameters
loggingLevelThe message logging level.
filePathThe description of the file and method for the calling message.
lineThe line where the message is logged.
messageThe logging message.
 - 
                            
MGLMapSnapshotOverlayHandler
A block provided during the snapshot drawing process, enabling the ability to draw custom overlays rendered with Core Graphics.
Declaration
Objective-C
typedef void (^MGLMapSnapshotOverlayHandler)(MGLMapSnapshotOverlay *_Nonnull)Swift
typealias MGLMapSnapshotOverlayHandler = (MGLMapSnapshotOverlay) -> VoidParameters
snapshotOverlayThe
MGLMapSnapshotOverlayprovided during snapshot drawing. - 
                            
MGLMapSnapshotCompletionHandler
A block to processes the result or error of a snapshot request.
Declaration
Objective-C
typedef void (^MGLMapSnapshotCompletionHandler)(MGLMapSnapshot *_Nullable, NSError *_Nullable)Swift
typealias MGLMapSnapshotCompletionHandler = (MGLMapSnapshot?, Error?) -> VoidParameters
snapshotThe
MGLMapSnapshotthat was generated ornilif an error occurred.errorThe error that occured or
nilwhen successful. - 
                            
MGLOfflinePackUserInfoKey
A key in the
userInfoproperty of a notification posted byMGLOfflinePack.Declaration
Objective-C
typedef NSString *MGLOfflinePackUserInfoKeySwift
struct MGLOfflinePackUserInfoKey : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable, @unchecked Sendable - 
                            
MGLOfflinePackAdditionCompletionHandler
A block to be called once an offline pack has been completely created and added.
An application typically calls the
-resumemethod on the pack inside this completion handler to begin the download.Declaration
Objective-C
typedef void (^MGLOfflinePackAdditionCompletionHandler)( MGLOfflinePack *_Nullable, NSError *_Nullable)Swift
typealias MGLOfflinePackAdditionCompletionHandler = (MGLOfflinePack?, Error?) -> VoidParameters
packContains a pointer to the newly added pack, or
nilif there was an error creating or adding the pack.errorContains a pointer to an error object (if any) indicating why the pack could not be created or added.
 - 
                            
MGLOfflinePackRemovalCompletionHandler
A block to be called once an offline pack has been completely invalidated and removed.
Avoid any references to the pack inside this completion handler: by the time this completion handler is executed, the pack has become invalid, and any messages passed to it will raise an exception.
Declaration
Objective-C
typedef void (^MGLOfflinePackRemovalCompletionHandler)(NSError *_Nullable)Swift
typealias MGLOfflinePackRemovalCompletionHandler = (Error?) -> VoidParameters
errorContains a pointer to an error object (if any) indicating why the pack could not be invalidated or removed.
 - 
                            
MGLBatchedOfflinePackAdditionCompletionHandler
A block to be called once the contents of a file are copied into the current packs.
Declaration
Objective-C
typedef void (^MGLBatchedOfflinePackAdditionCompletionHandler)( NSURL *_Nonnull, NSArray<MGLOfflinePack *> *_Nullable, NSError *_Nullable)Swift
typealias MGLBatchedOfflinePackAdditionCompletionHandler = (URL, [MGLOfflinePack]?, Error?) -> VoidParameters
fileURLThe file URL of the offline database containing the offline packs that were copied.
packsAn array of all known offline packs, or
nilif there was an error creating or adding the pack.errorA pointer to an error object (if any) indicating why the pack could not be created or added.
 - 
                            
MGLOfflinePreloadDataCompletionHandler
A block to be called once the data has been preloaded.
Declaration
Objective-C
typedef void (^MGLOfflinePreloadDataCompletionHandler)(NSURL *_Nonnull, NSError *_Nullable)Swift
typealias MGLOfflinePreloadDataCompletionHandler = (URL, Error?) -> VoidParameters
urlThe URL of the data that was pre-loaded.
errorContains a pointer to an error object (if any) indicating why the data could not be pre-loaded.
 - 
                            
MGLShapeSourceOption
Options for
MGLShapeSourceobjects.Declaration
Objective-C
typedef NSString *MGLShapeSourceOptionSwift
struct MGLShapeSourceOption : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable, @unchecked Sendable - 
                            
MGLTileSourceOption
Options for
MGLTileSourceobjects.Declaration
Objective-C
typedef NSString *MGLTileSourceOptionSwift
struct MGLTileSourceOption : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable, @unchecked Sendable - 
                            
MGLTransition
A structure containing information about a transition.
See moreDeclaration
Objective-C
typedef struct MGLTransition MGLTransition - 
                            
MGLMapViewDecelerationRate
Options for
MGLMapView.decelerationRate.Declaration
Objective-C
typedef CGFloat MGLMapViewDecelerationRateSwift
struct MGLMapViewDecelerationRate : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable, @unchecked Sendable - 
                            
MGLMapViewPreferredFramesPerSecond
Options for
MGLMapView.preferredFramesPerSecond.Declaration
Objective-C
typedef NSInteger MGLMapViewPreferredFramesPerSecondSwift
struct MGLMapViewPreferredFramesPerSecond : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable, @unchecked Sendable 
Other Type Definitions
The following type definitions are available globally.
- 
                            
                            
Options for
MGLAttributedExpression.attributes.Declaration
Objective-C
typedef NSString *MGLAttributedExpressionKeySwift
struct MGLAttributedExpressionKey : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable, @unchecked Sendable - 
                            
MGLSphericalPosition
A structure containing information about the position of the light source relative to lit geometries.
See moreDeclaration
Objective-C
typedef struct MGLSphericalPosition MGLSphericalPosition - 
                            
MGLLoggingBlockHandler
A block to be called once
loggingLevelis set to a higher value thanMGLLoggingLevelNone.Declaration
Objective-C
typedef void (^MGLLoggingBlockHandler)(MGLLoggingLevel, NSString *_Nonnull, NSUInteger, NSString *_Nonnull)Swift
typealias MGLLoggingBlockHandler = (MGLLoggingLevel, String, UInt, String) -> VoidParameters
loggingLevelThe message logging level.
filePathThe description of the file and method for the calling message.
lineThe line where the message is logged.
messageThe logging message.
 - 
                            
MGLMapSnapshotOverlayHandler
A block provided during the snapshot drawing process, enabling the ability to draw custom overlays rendered with Core Graphics.
Declaration
Objective-C
typedef void (^MGLMapSnapshotOverlayHandler)(MGLMapSnapshotOverlay *_Nonnull)Swift
typealias MGLMapSnapshotOverlayHandler = (MGLMapSnapshotOverlay) -> VoidParameters
snapshotOverlayThe
MGLMapSnapshotOverlayprovided during snapshot drawing. - 
                            
MGLMapSnapshotCompletionHandler
A block to processes the result or error of a snapshot request.
Declaration
Objective-C
typedef void (^MGLMapSnapshotCompletionHandler)(MGLMapSnapshot *_Nullable, NSError *_Nullable)Swift
typealias MGLMapSnapshotCompletionHandler = (MGLMapSnapshot?, Error?) -> VoidParameters
snapshotThe
MGLMapSnapshotthat was generated ornilif an error occurred.errorThe error that occured or
nilwhen successful. - 
                            
MGLOfflinePackUserInfoKey
A key in the
userInfoproperty of a notification posted byMGLOfflinePack.Declaration
Objective-C
typedef NSString *MGLOfflinePackUserInfoKeySwift
struct MGLOfflinePackUserInfoKey : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable, @unchecked Sendable - 
                            
MGLOfflinePackAdditionCompletionHandler
A block to be called once an offline pack has been completely created and added.
An application typically calls the
-resumemethod on the pack inside this completion handler to begin the download.Declaration
Objective-C
typedef void (^MGLOfflinePackAdditionCompletionHandler)( MGLOfflinePack *_Nullable, NSError *_Nullable)Swift
typealias MGLOfflinePackAdditionCompletionHandler = (MGLOfflinePack?, Error?) -> VoidParameters
packContains a pointer to the newly added pack, or
nilif there was an error creating or adding the pack.errorContains a pointer to an error object (if any) indicating why the pack could not be created or added.
 - 
                            
MGLOfflinePackRemovalCompletionHandler
A block to be called once an offline pack has been completely invalidated and removed.
Avoid any references to the pack inside this completion handler: by the time this completion handler is executed, the pack has become invalid, and any messages passed to it will raise an exception.
Declaration
Objective-C
typedef void (^MGLOfflinePackRemovalCompletionHandler)(NSError *_Nullable)Swift
typealias MGLOfflinePackRemovalCompletionHandler = (Error?) -> VoidParameters
errorContains a pointer to an error object (if any) indicating why the pack could not be invalidated or removed.
 - 
                            
MGLBatchedOfflinePackAdditionCompletionHandler
A block to be called once the contents of a file are copied into the current packs.
Declaration
Objective-C
typedef void (^MGLBatchedOfflinePackAdditionCompletionHandler)( NSURL *_Nonnull, NSArray<MGLOfflinePack *> *_Nullable, NSError *_Nullable)Swift
typealias MGLBatchedOfflinePackAdditionCompletionHandler = (URL, [MGLOfflinePack]?, Error?) -> VoidParameters
fileURLThe file URL of the offline database containing the offline packs that were copied.
packsAn array of all known offline packs, or
nilif there was an error creating or adding the pack.errorA pointer to an error object (if any) indicating why the pack could not be created or added.
 - 
                            
MGLOfflinePreloadDataCompletionHandler
A block to be called once the data has been preloaded.
Declaration
Objective-C
typedef void (^MGLOfflinePreloadDataCompletionHandler)(NSURL *_Nonnull, NSError *_Nullable)Swift
typealias MGLOfflinePreloadDataCompletionHandler = (URL, Error?) -> VoidParameters
urlThe URL of the data that was pre-loaded.
errorContains a pointer to an error object (if any) indicating why the data could not be pre-loaded.
 - 
                            
MGLShapeSourceOption
Options for
MGLShapeSourceobjects.Declaration
Objective-C
typedef NSString *MGLShapeSourceOptionSwift
struct MGLShapeSourceOption : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable, @unchecked Sendable - 
                            
MGLTileSourceOption
Options for
MGLTileSourceobjects.Declaration
Objective-C
typedef NSString *MGLTileSourceOptionSwift
struct MGLTileSourceOption : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable, @unchecked Sendable - 
                            
MGLTransition
A structure containing information about a transition.
See moreDeclaration
Objective-C
typedef struct MGLTransition MGLTransition - 
                            
MGLMapViewDecelerationRate
Options for
MGLMapView.decelerationRate.Declaration
Objective-C
typedef CGFloat MGLMapViewDecelerationRateSwift
struct MGLMapViewDecelerationRate : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable, @unchecked Sendable - 
                            
MGLMapViewPreferredFramesPerSecond
Options for
MGLMapView.preferredFramesPerSecond.Declaration
Objective-C
typedef NSInteger MGLMapViewPreferredFramesPerSecondSwift
struct MGLMapViewPreferredFramesPerSecond : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable, @unchecked Sendable 
Other Type Definitions
The following type definitions are available globally.
- 
                            
                            
Options for
MGLAttributedExpression.attributes.Declaration
Objective-C
typedef NSString *MGLAttributedExpressionKeySwift
struct MGLAttributedExpressionKey : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable, @unchecked Sendable - 
                            
MGLSphericalPosition
A structure containing information about the position of the light source relative to lit geometries.
See moreDeclaration
Objective-C
typedef struct MGLSphericalPosition MGLSphericalPosition - 
                            
MGLLoggingBlockHandler
A block to be called once
loggingLevelis set to a higher value thanMGLLoggingLevelNone.Declaration
Objective-C
typedef void (^MGLLoggingBlockHandler)(MGLLoggingLevel, NSString *_Nonnull, NSUInteger, NSString *_Nonnull)Swift
typealias MGLLoggingBlockHandler = (MGLLoggingLevel, String, UInt, String) -> VoidParameters
loggingLevelThe message logging level.
filePathThe description of the file and method for the calling message.
lineThe line where the message is logged.
messageThe logging message.
 - 
                            
MGLMapSnapshotOverlayHandler
A block provided during the snapshot drawing process, enabling the ability to draw custom overlays rendered with Core Graphics.
Declaration
Objective-C
typedef void (^MGLMapSnapshotOverlayHandler)(MGLMapSnapshotOverlay *_Nonnull)Swift
typealias MGLMapSnapshotOverlayHandler = (MGLMapSnapshotOverlay) -> VoidParameters
snapshotOverlayThe
MGLMapSnapshotOverlayprovided during snapshot drawing. - 
                            
MGLMapSnapshotCompletionHandler
A block to processes the result or error of a snapshot request.
Declaration
Objective-C
typedef void (^MGLMapSnapshotCompletionHandler)(MGLMapSnapshot *_Nullable, NSError *_Nullable)Swift
typealias MGLMapSnapshotCompletionHandler = (MGLMapSnapshot?, Error?) -> VoidParameters
snapshotThe
MGLMapSnapshotthat was generated ornilif an error occurred.errorThe error that occured or
nilwhen successful. - 
                            
MGLOfflinePackUserInfoKey
A key in the
userInfoproperty of a notification posted byMGLOfflinePack.Declaration
Objective-C
typedef NSString *MGLOfflinePackUserInfoKeySwift
struct MGLOfflinePackUserInfoKey : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable, @unchecked Sendable - 
                            
MGLOfflinePackAdditionCompletionHandler
A block to be called once an offline pack has been completely created and added.
An application typically calls the
-resumemethod on the pack inside this completion handler to begin the download.Declaration
Objective-C
typedef void (^MGLOfflinePackAdditionCompletionHandler)( MGLOfflinePack *_Nullable, NSError *_Nullable)Swift
typealias MGLOfflinePackAdditionCompletionHandler = (MGLOfflinePack?, Error?) -> VoidParameters
packContains a pointer to the newly added pack, or
nilif there was an error creating or adding the pack.errorContains a pointer to an error object (if any) indicating why the pack could not be created or added.
 - 
                            
MGLOfflinePackRemovalCompletionHandler
A block to be called once an offline pack has been completely invalidated and removed.
Avoid any references to the pack inside this completion handler: by the time this completion handler is executed, the pack has become invalid, and any messages passed to it will raise an exception.
Declaration
Objective-C
typedef void (^MGLOfflinePackRemovalCompletionHandler)(NSError *_Nullable)Swift
typealias MGLOfflinePackRemovalCompletionHandler = (Error?) -> VoidParameters
errorContains a pointer to an error object (if any) indicating why the pack could not be invalidated or removed.
 - 
                            
MGLBatchedOfflinePackAdditionCompletionHandler
A block to be called once the contents of a file are copied into the current packs.
Declaration
Objective-C
typedef void (^MGLBatchedOfflinePackAdditionCompletionHandler)( NSURL *_Nonnull, NSArray<MGLOfflinePack *> *_Nullable, NSError *_Nullable)Swift
typealias MGLBatchedOfflinePackAdditionCompletionHandler = (URL, [MGLOfflinePack]?, Error?) -> VoidParameters
fileURLThe file URL of the offline database containing the offline packs that were copied.
packsAn array of all known offline packs, or
nilif there was an error creating or adding the pack.errorA pointer to an error object (if any) indicating why the pack could not be created or added.
 - 
                            
MGLOfflinePreloadDataCompletionHandler
A block to be called once the data has been preloaded.
Declaration
Objective-C
typedef void (^MGLOfflinePreloadDataCompletionHandler)(NSURL *_Nonnull, NSError *_Nullable)Swift
typealias MGLOfflinePreloadDataCompletionHandler = (URL, Error?) -> VoidParameters
urlThe URL of the data that was pre-loaded.
errorContains a pointer to an error object (if any) indicating why the data could not be pre-loaded.
 - 
                            
MGLShapeSourceOption
Options for
MGLShapeSourceobjects.Declaration
Objective-C
typedef NSString *MGLShapeSourceOptionSwift
struct MGLShapeSourceOption : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable, @unchecked Sendable - 
                            
MGLTileSourceOption
Options for
MGLTileSourceobjects.Declaration
Objective-C
typedef NSString *MGLTileSourceOptionSwift
struct MGLTileSourceOption : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable, @unchecked Sendable - 
                            
MGLTransition
A structure containing information about a transition.
See moreDeclaration
Objective-C
typedef struct MGLTransition MGLTransition - 
                            
MGLMapViewDecelerationRate
Options for
MGLMapView.decelerationRate.Declaration
Objective-C
typedef CGFloat MGLMapViewDecelerationRateSwift
struct MGLMapViewDecelerationRate : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable, @unchecked Sendable - 
                            
MGLMapViewPreferredFramesPerSecond
Options for
MGLMapView.preferredFramesPerSecond.Declaration
Objective-C
typedef NSInteger MGLMapViewPreferredFramesPerSecondSwift
struct MGLMapViewPreferredFramesPerSecond : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable, @unchecked Sendable 
Other Type Definitions
The following type definitions are available globally.
- 
                            
                            
Options for
MGLAttributedExpression.attributes.Declaration
Objective-C
typedef NSString *MGLAttributedExpressionKeySwift
struct MGLAttributedExpressionKey : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable, @unchecked Sendable - 
                            
MGLSphericalPosition
A structure containing information about the position of the light source relative to lit geometries.
See moreDeclaration
Objective-C
typedef struct MGLSphericalPosition MGLSphericalPosition - 
                            
MGLLoggingBlockHandler
A block to be called once
loggingLevelis set to a higher value thanMGLLoggingLevelNone.Declaration
Objective-C
typedef void (^MGLLoggingBlockHandler)(MGLLoggingLevel, NSString *_Nonnull, NSUInteger, NSString *_Nonnull)Swift
typealias MGLLoggingBlockHandler = (MGLLoggingLevel, String, UInt, String) -> VoidParameters
loggingLevelThe message logging level.
filePathThe description of the file and method for the calling message.
lineThe line where the message is logged.
messageThe logging message.
 - 
                            
MGLMapSnapshotOverlayHandler
A block provided during the snapshot drawing process, enabling the ability to draw custom overlays rendered with Core Graphics.
Declaration
Objective-C
typedef void (^MGLMapSnapshotOverlayHandler)(MGLMapSnapshotOverlay *_Nonnull)Swift
typealias MGLMapSnapshotOverlayHandler = (MGLMapSnapshotOverlay) -> VoidParameters
snapshotOverlayThe
MGLMapSnapshotOverlayprovided during snapshot drawing. - 
                            
MGLMapSnapshotCompletionHandler
A block to processes the result or error of a snapshot request.
Declaration
Objective-C
typedef void (^MGLMapSnapshotCompletionHandler)(MGLMapSnapshot *_Nullable, NSError *_Nullable)Swift
typealias MGLMapSnapshotCompletionHandler = (MGLMapSnapshot?, Error?) -> VoidParameters
snapshotThe
MGLMapSnapshotthat was generated ornilif an error occurred.errorThe error that occured or
nilwhen successful. - 
                            
MGLOfflinePackUserInfoKey
A key in the
userInfoproperty of a notification posted byMGLOfflinePack.Declaration
Objective-C
typedef NSString *MGLOfflinePackUserInfoKeySwift
struct MGLOfflinePackUserInfoKey : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable, @unchecked Sendable - 
                            
MGLOfflinePackAdditionCompletionHandler
A block to be called once an offline pack has been completely created and added.
An application typically calls the
-resumemethod on the pack inside this completion handler to begin the download.Declaration
Objective-C
typedef void (^MGLOfflinePackAdditionCompletionHandler)( MGLOfflinePack *_Nullable, NSError *_Nullable)Swift
typealias MGLOfflinePackAdditionCompletionHandler = (MGLOfflinePack?, Error?) -> VoidParameters
packContains a pointer to the newly added pack, or
nilif there was an error creating or adding the pack.errorContains a pointer to an error object (if any) indicating why the pack could not be created or added.
 - 
                            
MGLOfflinePackRemovalCompletionHandler
A block to be called once an offline pack has been completely invalidated and removed.
Avoid any references to the pack inside this completion handler: by the time this completion handler is executed, the pack has become invalid, and any messages passed to it will raise an exception.
Declaration
Objective-C
typedef void (^MGLOfflinePackRemovalCompletionHandler)(NSError *_Nullable)Swift
typealias MGLOfflinePackRemovalCompletionHandler = (Error?) -> VoidParameters
errorContains a pointer to an error object (if any) indicating why the pack could not be invalidated or removed.
 - 
                            
MGLBatchedOfflinePackAdditionCompletionHandler
A block to be called once the contents of a file are copied into the current packs.
Declaration
Objective-C
typedef void (^MGLBatchedOfflinePackAdditionCompletionHandler)( NSURL *_Nonnull, NSArray<MGLOfflinePack *> *_Nullable, NSError *_Nullable)Swift
typealias MGLBatchedOfflinePackAdditionCompletionHandler = (URL, [MGLOfflinePack]?, Error?) -> VoidParameters
fileURLThe file URL of the offline database containing the offline packs that were copied.
packsAn array of all known offline packs, or
nilif there was an error creating or adding the pack.errorA pointer to an error object (if any) indicating why the pack could not be created or added.
 - 
                            
MGLOfflinePreloadDataCompletionHandler
A block to be called once the data has been preloaded.
Declaration
Objective-C
typedef void (^MGLOfflinePreloadDataCompletionHandler)(NSURL *_Nonnull, NSError *_Nullable)Swift
typealias MGLOfflinePreloadDataCompletionHandler = (URL, Error?) -> VoidParameters
urlThe URL of the data that was pre-loaded.
errorContains a pointer to an error object (if any) indicating why the data could not be pre-loaded.
 - 
                            
MGLShapeSourceOption
Options for
MGLShapeSourceobjects.Declaration
Objective-C
typedef NSString *MGLShapeSourceOptionSwift
struct MGLShapeSourceOption : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable, @unchecked Sendable - 
                            
MGLTileSourceOption
Options for
MGLTileSourceobjects.Declaration
Objective-C
typedef NSString *MGLTileSourceOptionSwift
struct MGLTileSourceOption : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable, @unchecked Sendable - 
                            
MGLTransition
A structure containing information about a transition.
See moreDeclaration
Objective-C
typedef struct MGLTransition MGLTransition - 
                            
MGLMapViewDecelerationRate
Options for
MGLMapView.decelerationRate.Declaration
Objective-C
typedef CGFloat MGLMapViewDecelerationRateSwift
struct MGLMapViewDecelerationRate : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable, @unchecked Sendable - 
                            
MGLMapViewPreferredFramesPerSecond
Options for
MGLMapView.preferredFramesPerSecond.Declaration
Objective-C
typedef NSInteger MGLMapViewPreferredFramesPerSecondSwift
struct MGLMapViewPreferredFramesPerSecond : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable, @unchecked Sendable 
Other Type Definitions
The following type definitions are available globally.
- 
                            
                            
Options for
MGLAttributedExpression.attributes.Declaration
Objective-C
typedef NSString *MGLAttributedExpressionKeySwift
struct MGLAttributedExpressionKey : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable, @unchecked Sendable - 
                            
MGLSphericalPosition
A structure containing information about the position of the light source relative to lit geometries.
See moreDeclaration
Objective-C
typedef struct MGLSphericalPosition MGLSphericalPosition - 
                            
MGLLoggingBlockHandler
A block to be called once
loggingLevelis set to a higher value thanMGLLoggingLevelNone.Declaration
Objective-C
typedef void (^MGLLoggingBlockHandler)(MGLLoggingLevel, NSString *_Nonnull, NSUInteger, NSString *_Nonnull)Swift
typealias MGLLoggingBlockHandler = (MGLLoggingLevel, String, UInt, String) -> VoidParameters
loggingLevelThe message logging level.
filePathThe description of the file and method for the calling message.
lineThe line where the message is logged.
messageThe logging message.
 - 
                            
MGLMapSnapshotOverlayHandler
A block provided during the snapshot drawing process, enabling the ability to draw custom overlays rendered with Core Graphics.
Declaration
Objective-C
typedef void (^MGLMapSnapshotOverlayHandler)(MGLMapSnapshotOverlay *_Nonnull)Swift
typealias MGLMapSnapshotOverlayHandler = (MGLMapSnapshotOverlay) -> VoidParameters
snapshotOverlayThe
MGLMapSnapshotOverlayprovided during snapshot drawing. - 
                            
MGLMapSnapshotCompletionHandler
A block to processes the result or error of a snapshot request.
Declaration
Objective-C
typedef void (^MGLMapSnapshotCompletionHandler)(MGLMapSnapshot *_Nullable, NSError *_Nullable)Swift
typealias MGLMapSnapshotCompletionHandler = (MGLMapSnapshot?, Error?) -> VoidParameters
snapshotThe
MGLMapSnapshotthat was generated ornilif an error occurred.errorThe error that occured or
nilwhen successful. - 
                            
MGLOfflinePackUserInfoKey
A key in the
userInfoproperty of a notification posted byMGLOfflinePack.Declaration
Objective-C
typedef NSString *MGLOfflinePackUserInfoKeySwift
struct MGLOfflinePackUserInfoKey : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable, @unchecked Sendable - 
                            
MGLOfflinePackAdditionCompletionHandler
A block to be called once an offline pack has been completely created and added.
An application typically calls the
-resumemethod on the pack inside this completion handler to begin the download.Declaration
Objective-C
typedef void (^MGLOfflinePackAdditionCompletionHandler)( MGLOfflinePack *_Nullable, NSError *_Nullable)Swift
typealias MGLOfflinePackAdditionCompletionHandler = (MGLOfflinePack?, Error?) -> VoidParameters
packContains a pointer to the newly added pack, or
nilif there was an error creating or adding the pack.errorContains a pointer to an error object (if any) indicating why the pack could not be created or added.
 - 
                            
MGLOfflinePackRemovalCompletionHandler
A block to be called once an offline pack has been completely invalidated and removed.
Avoid any references to the pack inside this completion handler: by the time this completion handler is executed, the pack has become invalid, and any messages passed to it will raise an exception.
Declaration
Objective-C
typedef void (^MGLOfflinePackRemovalCompletionHandler)(NSError *_Nullable)Swift
typealias MGLOfflinePackRemovalCompletionHandler = (Error?) -> VoidParameters
errorContains a pointer to an error object (if any) indicating why the pack could not be invalidated or removed.
 - 
                            
MGLBatchedOfflinePackAdditionCompletionHandler
A block to be called once the contents of a file are copied into the current packs.
Declaration
Objective-C
typedef void (^MGLBatchedOfflinePackAdditionCompletionHandler)( NSURL *_Nonnull, NSArray<MGLOfflinePack *> *_Nullable, NSError *_Nullable)Swift
typealias MGLBatchedOfflinePackAdditionCompletionHandler = (URL, [MGLOfflinePack]?, Error?) -> VoidParameters
fileURLThe file URL of the offline database containing the offline packs that were copied.
packsAn array of all known offline packs, or
nilif there was an error creating or adding the pack.errorA pointer to an error object (if any) indicating why the pack could not be created or added.
 - 
                            
MGLOfflinePreloadDataCompletionHandler
A block to be called once the data has been preloaded.
Declaration
Objective-C
typedef void (^MGLOfflinePreloadDataCompletionHandler)(NSURL *_Nonnull, NSError *_Nullable)Swift
typealias MGLOfflinePreloadDataCompletionHandler = (URL, Error?) -> VoidParameters
urlThe URL of the data that was pre-loaded.
errorContains a pointer to an error object (if any) indicating why the data could not be pre-loaded.
 - 
                            
MGLShapeSourceOption
Options for
MGLShapeSourceobjects.Declaration
Objective-C
typedef NSString *MGLShapeSourceOptionSwift
struct MGLShapeSourceOption : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable, @unchecked Sendable - 
                            
MGLTileSourceOption
Options for
MGLTileSourceobjects.Declaration
Objective-C
typedef NSString *MGLTileSourceOptionSwift
struct MGLTileSourceOption : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable, @unchecked Sendable - 
                            
MGLTransition
A structure containing information about a transition.
See moreDeclaration
Objective-C
typedef struct MGLTransition MGLTransition - 
                            
MGLMapViewDecelerationRate
Options for
MGLMapView.decelerationRate.Declaration
Objective-C
typedef CGFloat MGLMapViewDecelerationRateSwift
struct MGLMapViewDecelerationRate : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable, @unchecked Sendable - 
                            
MGLMapViewPreferredFramesPerSecond
Options for
MGLMapView.preferredFramesPerSecond.Declaration
Objective-C
typedef NSInteger MGLMapViewPreferredFramesPerSecondSwift
struct MGLMapViewPreferredFramesPerSecond : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable, @unchecked Sendable 
MGLSphericalPosition
typedef struct MGLSphericalPosition MGLSphericalPosition
                        A structure containing information about the position of the light source relative to lit geometries.
- 
                            
MGLSphericalPosition
A structure containing information about the position of the light source relative to lit geometries.
See moreDeclaration
Objective-C
struct MGLSphericalPosition {}Swift
struct MGLSphericalPosition 
Other Type Definitions
The following type definitions are available globally.
- 
                            
MGLAttributedExpressionKey
Options for
MGLAttributedExpression.attributes.Declaration
Objective-C
typedef NSString *MGLAttributedExpressionKeySwift
struct MGLAttributedExpressionKey : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable, @unchecked Sendable - 
                            
MGLSphericalPosition
A structure containing information about the position of the light source relative to lit geometries.
See moreDeclaration
Objective-C
typedef struct MGLSphericalPosition MGLSphericalPosition - 
                            
MGLLoggingBlockHandler
A block to be called once
loggingLevelis set to a higher value thanMGLLoggingLevelNone.Declaration
Objective-C
typedef void (^MGLLoggingBlockHandler)(MGLLoggingLevel, NSString *_Nonnull, NSUInteger, NSString *_Nonnull)Swift
typealias MGLLoggingBlockHandler = (MGLLoggingLevel, String, UInt, String) -> VoidParameters
loggingLevelThe message logging level.
filePathThe description of the file and method for the calling message.
lineThe line where the message is logged.
messageThe logging message.
 - 
                            
MGLMapSnapshotOverlayHandler
A block provided during the snapshot drawing process, enabling the ability to draw custom overlays rendered with Core Graphics.
Declaration
Objective-C
typedef void (^MGLMapSnapshotOverlayHandler)(MGLMapSnapshotOverlay *_Nonnull)Swift
typealias MGLMapSnapshotOverlayHandler = (MGLMapSnapshotOverlay) -> VoidParameters
snapshotOverlayThe
MGLMapSnapshotOverlayprovided during snapshot drawing. - 
                            
MGLMapSnapshotCompletionHandler
A block to processes the result or error of a snapshot request.
Declaration
Objective-C
typedef void (^MGLMapSnapshotCompletionHandler)(MGLMapSnapshot *_Nullable, NSError *_Nullable)Swift
typealias MGLMapSnapshotCompletionHandler = (MGLMapSnapshot?, Error?) -> VoidParameters
snapshotThe
MGLMapSnapshotthat was generated ornilif an error occurred.errorThe error that occured or
nilwhen successful. - 
                            
MGLOfflinePackUserInfoKey
A key in the
userInfoproperty of a notification posted byMGLOfflinePack.Declaration
Objective-C
typedef NSString *MGLOfflinePackUserInfoKeySwift
struct MGLOfflinePackUserInfoKey : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable, @unchecked Sendable - 
                            
MGLOfflinePackAdditionCompletionHandler
A block to be called once an offline pack has been completely created and added.
An application typically calls the
-resumemethod on the pack inside this completion handler to begin the download.Declaration
Objective-C
typedef void (^MGLOfflinePackAdditionCompletionHandler)( MGLOfflinePack *_Nullable, NSError *_Nullable)Swift
typealias MGLOfflinePackAdditionCompletionHandler = (MGLOfflinePack?, Error?) -> VoidParameters
packContains a pointer to the newly added pack, or
nilif there was an error creating or adding the pack.errorContains a pointer to an error object (if any) indicating why the pack could not be created or added.
 - 
                            
MGLOfflinePackRemovalCompletionHandler
A block to be called once an offline pack has been completely invalidated and removed.
Avoid any references to the pack inside this completion handler: by the time this completion handler is executed, the pack has become invalid, and any messages passed to it will raise an exception.
Declaration
Objective-C
typedef void (^MGLOfflinePackRemovalCompletionHandler)(NSError *_Nullable)Swift
typealias MGLOfflinePackRemovalCompletionHandler = (Error?) -> VoidParameters
errorContains a pointer to an error object (if any) indicating why the pack could not be invalidated or removed.
 - 
                            
MGLBatchedOfflinePackAdditionCompletionHandler
A block to be called once the contents of a file are copied into the current packs.
Declaration
Objective-C
typedef void (^MGLBatchedOfflinePackAdditionCompletionHandler)( NSURL *_Nonnull, NSArray<MGLOfflinePack *> *_Nullable, NSError *_Nullable)Swift
typealias MGLBatchedOfflinePackAdditionCompletionHandler = (URL, [MGLOfflinePack]?, Error?) -> VoidParameters
fileURLThe file URL of the offline database containing the offline packs that were copied.
packsAn array of all known offline packs, or
nilif there was an error creating or adding the pack.errorA pointer to an error object (if any) indicating why the pack could not be created or added.
 - 
                            
MGLOfflinePreloadDataCompletionHandler
A block to be called once the data has been preloaded.
Declaration
Objective-C
typedef void (^MGLOfflinePreloadDataCompletionHandler)(NSURL *_Nonnull, NSError *_Nullable)Swift
typealias MGLOfflinePreloadDataCompletionHandler = (URL, Error?) -> VoidParameters
urlThe URL of the data that was pre-loaded.
errorContains a pointer to an error object (if any) indicating why the data could not be pre-loaded.
 - 
                            
MGLShapeSourceOption
Options for
MGLShapeSourceobjects.Declaration
Objective-C
typedef NSString *MGLShapeSourceOptionSwift
struct MGLShapeSourceOption : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable, @unchecked Sendable - 
                            
                            
Options for
MGLTileSourceobjects.Declaration
Objective-C
typedef NSString *MGLTileSourceOptionSwift
struct MGLTileSourceOption : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable, @unchecked Sendable - 
                            
MGLTransition
A structure containing information about a transition.
See moreDeclaration
Objective-C
typedef struct MGLTransition MGLTransition - 
                            
MGLMapViewDecelerationRate
Options for
MGLMapView.decelerationRate.Declaration
Objective-C
typedef CGFloat MGLMapViewDecelerationRateSwift
struct MGLMapViewDecelerationRate : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable, @unchecked Sendable - 
                            
MGLMapViewPreferredFramesPerSecond
Options for
MGLMapView.preferredFramesPerSecond.Declaration
Objective-C
typedef NSInteger MGLMapViewPreferredFramesPerSecondSwift
struct MGLMapViewPreferredFramesPerSecond : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable, @unchecked Sendable 
MGLTransition
typedef struct MGLTransition MGLTransition
                        A structure containing information about a transition.
- 
                            
MGLTransition
A structure containing information about a transition.
See moreDeclaration
Objective-C
struct MGLTransition {}Swift
struct MGLTransition